<template>
	<div v-on:click="changeTitle">
		<h1>{{tiltes}}</h1>
	</div>
</template>

<script>
	export default {
		name: 'ChildL',
		props: {
			tiltes: {
				type: String
			}
		},
		data() {
			return {
				//
			}
		},
		methods: {
			changeTitle() {
				//this.tiltes = '更改过后的数据'
				this.$emit('titleChange', '子组件向父组件传值')
			}
		}
	}
</script>

<style scoped>
</style>
